﻿@using NapCardOnline.Models
@*@{
    User objUser = Session["User"] as User;
}*@
@if (Request.IsAuthenticated)
{
    NapCardOnlineEntities db = new NapCardOnlineEntities();
    User employeeInfo = db.Users.Where(x => x.UserName == User.Identity.Name).FirstOrDefault();

    if (employeeInfo != null)
    {
    Session["User"] = employeeInfo;
    <text><strong>@Html.ActionLink(employeeInfo.UserName, "Edit", "User", new { id = employeeInfo.UserID }, null)</strong>!</text>
    <br />
    <text><strong>@Html.ActionLink("Đổi mật khẩu", "ChangePassword", "Account", null, new { @class = "label label-info" })</strong>!</text>
    <text><strong>@Html.ActionLink("Thoát", "LogOff", "Account", null, new { @class = "label label-important" })</strong></text>
    }
}
else
{
    @:@Html.ActionLink("Đăng nhập", "LogOn", "Account", null, new { @class = "label label-info" })
    @:@Html.ActionLink("Đăng ký", "Register", "Account", null, new { @class = "label label-important" })
}
